package cn.hr.services.impl;
/**                                        
 *功能描述:留言管理的业务处理 
 * @author  梁耀天             
 * @version   1.0                     
 * create Date April 26, 2010
 */ 
import java.util.List; 

import javax.annotation.Resource;


import org.springframework.stereotype.Service;

import cn.hr.dao.CommonDao;
import cn.hr.entity.Message;
import cn.hr.services.IHandleMessage;

@Service("handleMessage")
public class HandleMessageImpl implements IHandleMessage {
	
	@Resource(name="commonDao")
	private CommonDao commonDao;

	public CommonDao getCommonDao() {
		return commonDao;
	}

	public void setCommonDao(CommonDao commonDao) {
		this.commonDao = commonDao;
	}

	public boolean addMessage(Message message) {
		this.commonDao.save(message);
		return true;
	}

	public boolean deleteMessage(Message message) {
		return false;
	}

	public Message findMessageById(long id) {
		return null;
	}

	public List<Message> listAllMessage() {
		return null;
	}

	public boolean updateMessage(Message message) {
		return false;
	}
}
